package com.tengits.mqttmonitor.rnlibs.update;

import android.os.Environment;

import java.io.File;


public class PathUtils {

    public static String getRootFolder() {
        // 获取sdCard的路径
        File extStore = Environment.getExternalStorageDirectory();
        // 获取绝对路径
        String path = extStore.getAbsolutePath() + File.separator + "TenRoad" + File.separator;
        final File file = new File(path);
        if (!file.exists())
            file.mkdir();
        return path;
    }

    // 版本下载的文件路径
    public static String appDownLoadPath() {
        String path = getRootFolder() + "document" + File.separator;
        final File file = new File(path);
        if (!file.exists())
            file.mkdir();
        return path;
    }
}